package com.shuhg.book.util
{
	import com.shuhg.book.view.AlertWin;
	
	import flash.display.DisplayObject;
	
	import mx.managers.PopUpManager;

	public class ShuhgAlert
	{
		public function ShuhgAlert()
		{
		}
		
		static public function show(object:DisplayObject,content:String):void{
			var alertWin:AlertWin=AlertWin(PopUpManager.createPopUp(object,AlertWin,true));
			alertWin.x=(object.width-alertWin.width)/2
			alertWin.y=(object.height-alertWin.height)/2
			alertWin.content.text=content;
		}
	}
}